﻿using System;
using System.Windows;
using System.Windows.Media;
using _3DTools;

namespace SBPweb.MediaCenter.Tools.WPF.Helpers
{

    public static class Math2DHelper
    {

        public static Point GetPointOfCircle(Point origo, double radius, double angle)
        {
            Point ret = new Point();
            Double rad = MathUtils.DegreesToRadians(angle) * -1.0f;

            ret.X = origo.X + Math.Sin(rad) * radius;
            ret.Y = origo.Y + Math.Cos(rad) * radius;
            
            return ret;
        }

    }

}